import request from '../utils/request';
// 获取商品分类的api
export const api_query=(data)=>request.get("/goods/catelist",data);
export const api_update=(data)=>request.post("/goods/editcate",data);

// 获取商品列表
export const api_goodslist=(data)=>request.get("/goods/list",data);
// 删除商品列表
export const api_goodsdel=(data)=>request.get("/goods/del",data);
export const api_goodsadd=(data)=>request.post("/goods/addcate",data);
// 删除商品分类
export const api_delcate=(data)=>request.get("/goods/delcate",data);

// 添加商品
export const api_goodsave=(data)=>request.post("/goods/add",data);

// 修改商品
export const api_goodedit=(data)=>request.post("/goods/edit",data);



